#include <iostream>
#include "tiposB.h"

unsigned int Chofer::edad(void)
{
    return age;
}

IdChofer Chofer::ID()
{
    return identificador;
}

bool Chofer::operator<(const Chofer &c) const
{
    int a;
    int b;
    a=age;
    b=c.age;
    return a<b;
}

bool Chofer::operator>(const Chofer &c) const
{
    int a;
    int b;
    a=age;
    b=c.age;
    return a>b;
}

Chofer::Chofer(void)
{
}
Chofer::Chofer(int e,IdChofer i)
{
    identificador=i;
    age=e;
}

Chofer::Chofer(const Chofer &c)
{
   age=c.age;
    identificador=c.identificador;
}

bool Chofer::operator==(const Chofer &c) const
{
    bool b;
    b= age==c.age && identificador==c.identificador;
    return b;
}

bool Chofer::operator!=(const Chofer &c) const
{
    bool b;
    b= age!=c.age || identificador!=c.identificador;
    return b;
}

void Chofer::operator= (const Chofer &c)
{
    age=c.age;
    identificador=c.identificador;
}
//****************************************************************************//

ostream & operator <<(ostream &out, const Chofer &m)
    {
    out << " < ";

    out << m.identificador;
    out << " ";
    out << m.age;

    out << " > " << endl;
    return (out);
    }
